back() with errors in laravel

43

back() with errors in laravel -

return Redirect::back()->withErrors(['msg' => 'The Message']);
inside you view
@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif

Comments

Submit
0 Comments